﻿using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YYFDebugTools.CommonHelper
{
    public class SelectFiels
    {
        public static bool OpenSelectFileDialog(out List<string>? filePath)
        {
            filePath = null;
            OpenFileDialog openFileDialog = new OpenFileDialog();
            openFileDialog.Filter = "图片文件|*.jpg;*.jpeg;*.png;*.bmp;*.gif";
            openFileDialog.Multiselect = true;
            openFileDialog.Title = "请选择图片文件";
            openFileDialog.ShowDialog();

            if (openFileDialog.FileNames.Length > 0)
            {
                filePath = openFileDialog.FileNames.ToList();
                return true;
            }
            return false;
        }

    }
}
